function GameElement() {
	this.spriteSheet = false;
	this.animation = false;
}

GameElement.prototype.init = function (stage, isVisible) {
	this.animation = new createjs.BitmapAnimation(this.spriteSheet);
	this.animation.visible = isVisible;
	this.animation.gotoAndPlay('idle');
	stage.addChild(this.animation)
};

GameElement.prototype.hide = function () {
	this.animation.visible = false;
};

GameElement.prototype.show = function () {
	this.animation.visible = true;
	this.animation.gotoAndPlay('idle');
};

GameElement.prototype.play = function () {
	this.animation.visible = true;
	this.animation.gotoAndPlay('play');
};

GameElement.prototype.setPosition = function (x, y) {
	this.animation.gotoAndPlay('idle');
	this.animation.x = x;
	this.animation.y = y;
};

GameElement.prototype.destruct = function () {
	this.animation.getStage().removeChild(this.animation);
	this.animation = null;
};


function GameElementJack(stage, isVisible) {
	this.init(stage, isVisible);
}
GameElementJack.prototype = new GameElement();
GameElementJack.prototype.spriteSheet = new createjs.SpriteSheet({
	animations:{
		idle:[0],
		play:[0, 26, false]
	},
	images:["images/game_ims_j_symbol_animation.png"],
	frames:{
		width:127,
		height:127,
		regX:0,
		regY:0,
		count:27
	}
});


function GameElementQueen(stage, isVisible) {
	this.spriteSheet =
		this.init(stage, isVisible);
}
GameElementQueen.prototype = new GameElement();
GameElementQueen.prototype.spriteSheet = new createjs.SpriteSheet({
	animations:{
		idle:[0],
		play:[0, 26, false]
	},
	images:["images/game_ims_q_symbol_animation.png"],
	frames:{
		width:127,
		height:127,
		regX:0,
		regY:0,
		count:27
	}
});


function GameElementKing(stage, isVisible) {
	this.init(stage, isVisible);
}
GameElementKing.prototype = new GameElement();
GameElementKing.prototype.spriteSheet = new createjs.SpriteSheet({
	animations:{
		idle:[0],
		play:[0, 26, false]
	},
	images:["images/game_ims_k_symbol_animation.png"],
	frames:{
		width:127,
		height:127,
		regX:0,
		regY:0,
		count:27
	}
});


function GameElementAce(stage, isVisible) {
	this.init(stage, isVisible);
}

GameElementAce.prototype = new GameElement();
GameElementAce.prototype.spriteSheet = new createjs.SpriteSheet({
	animations:{
		idle:[0],
		play:[0, 26, false]
	},
	images:["images/game_ims_a_symbol_animation.png"],
	frames:{
		width:127,
		height:127,
		regX:0,
		regY:0,
		count:27
	}
});